home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Systemmonitors / AskTask / at_help.c < prev    next >
C/C++ Source or Header  |  1996-09-26  |  2KB  |  75 lines

  1. /* at_help.c */
  2. /*************************************************************************
  3.  ***          AskTask Supplementary File - HELP/ABOUT module           ***
  4.  *** Date begun: 1/4/89.                                               ***
  5.  *** Last modified: 2/4/89.                                            ***
  6.  *************************************************************************/
  7.  
  8. #include "asktask.h"
  9.  
  10. static struct IntuiText pageline = {1,2,JAM1,0,0,NULL,NULL,NULL};
  11. static char *helpdata[13] = {
  12.     "ESC  - terminate.",
  13.     "",
  14.     "F1   - Refresh the task list.",
  15.     "F2   - Refresh this box's data.",
  16.     "F5   - Exit() task.",
  17.     "F6   - RemTask() current task.",
  18.     "F7   - Change task signal bits.",
  19.     "F8   - Change task priority.",
  20.     "F10  - About AskTask.",
  21.     "CSRU - Previous task page.",
  22.     "CSRD - Next task page.",
  23.     "HELP - this information.",
  24.     "   (There are no menu options)"};
  25. static char *aboutdata[13] = {
  26.     "",
  27.     "  AskTask - version dated 02/4/89.",
  28.     "                 by",
  29.     "            JJB TEMPLAR.",
  30.     "",
  31.     "",
  32.     "             J.Bickers,",
  33.     "             214 Rata St,",
  34.     "             Naenae.",
  35.     "",
  36.     "",
  37.     "",
  38.     "      (Freely redistributable)"};
  39.  
  40. extern struct Window    *Window;
  41. extern void putmessage(char *,int);
  42.  
  43. void    help();
  44. void    about();
  45. static void page(char *,char **);
  46.  
  47. static void page(title,data) /*==========================================*/
  48. char    *title,**data;
  49. {
  50. int     i,x,y;
  51.     putmessage("",1);
  52.     SetAPen(Window->RPort,2);
  53.     RectFill(Window->RPort,168,10,471,132);
  54.     SetAPen(Window->RPort,1);
  55.     Move(Window->RPort,170,19);     Draw(Window->RPort,469,19);
  56.     pageline.IText = title; pageline.FrontPen = 3;
  57.     x = 319 - (IntuiTextLength(&pageline)/2);
  58.     PrintIText(Window->RPort,&pageline,x,11);
  59.     i = 0;      pageline.FrontPen = 1;
  60.     for (y = 29; y < 133; y+=8) {
  61.         pageline.IText = data[i++];
  62.         PrintIText(Window->RPort,&pageline,170,y);
  63.     }
  64. }
  65.  
  66. void    help() /*========================================================*/
  67. {
  68.     page("Help Information",&helpdata[0]);
  69. }
  70.  
  71. void    about() /*=======================================================*/
  72. {
  73.     page("About AskTask",&aboutdata[0]);
  74. }
  75.